import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'gather_adjustment_process' })
export default class GatherAdjustmentProcess extends BaseEntity {
  @Column({ type: 'varchar', length: 250, name: 'adjustment_process_name', comment: '流程名称' })
  @ApiProperty()
  adjustmentProcessName: string;

  @Column({
    type: 'varchar',
    length: 250,
    name: 'adjustment_process_code',
    comment: '流程编码',
    unique: true,
  })
  @ApiProperty()
  adjustmentProcessCode: string;

  @Column({ type: 'varchar', name: 'adjustment_btn', nullable: true, comment: '调机按钮' })
  @ApiProperty()
  adjustmentBtn: string;

  @Column({ type: 'varchar', name: 'adjustment_interface', nullable: true, comment: '调机界面' })
  @ApiProperty()
  adjustmentInterface: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
